﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Y2015CS68LIB.OOP_LIB.EX02
{
    public class CONTROLLERS
    {
        private MODELS m_objModels;

        public CONTROLLERS()
        {
            //Khởi tạo đối tượng Models
            m_objModels = new MODELS();
        }

        /// <summary>
        /// Thực thi tính toán Cộng - Trừ - Nhân  -Chia
        /// </summary>
        /// <param name="objEntity"></param>
        /// <param name="shOpt">+ shOpt = 0: Cộng; 
        ///                                                + shOpt = 1: Trừ;
        ///                                                + shOpt = 2: Nhân;
        ///                                                + shOpt = 3: Chia;</param>
        /// <returns></returns>
        public double doCalculator(Entity objEntity, short shOpt)
        {
            return m_objModels.Calculators(objEntity, shOpt);
        }
    }
}
